package com.example.systema.service.impl;

import com.example.systema.dao.UserMapper;
import com.example.systema.domain.User;
import com.example.systema.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByname(String userName) {
        return userMapper.findByName(userName);
    }
}
